package com.copc.common.constants;

/**
 * @author yuanbin
 */
public class Constant {

    public static final String ORDERNO_SEQUENCE = "dy";
    /** */
    /**
     * 加密算法RSA
     */
    public static final String KEY_ALGORITHM = "RSA";

    /** */
    /**
     * 签名算法
     */
    public static final String SIGNATURE_ALGORITHM = "MD5withRSA";

    /** */
    /**
     * 获取公钥的key
     */
    public static final String PUBLIC_KEY = "XS_PUBLIC_KEY";

    /** */
    /**
     * 获取私钥的key
     */
    public static final String PRIVATE_KEY = "XS_PRIVATE_KEY";

    /** */
    /**
     * RSA最大加密明文大小
     */
    public static final int MAX_ENCRYPT_BLOCK = 117;

    /** */
    /**
     * RSA最大解密密文大小
     */
    public static final int MAX_DECRYPT_BLOCK = 128;

    /** */
    /**
     * RSA 位数 如果采用2048 上面最大加密和最大解密则须填写:  245 256
     */
    public static final int INITIALIZE_LENGTH = 1024;

    /**
     *
     */
    public static final String ALGORITHMSTR = "AES/ECB/PKCS5Padding";


    public static final String CREATE_ORDER = "pre_create_order";

    public static final String PAYMENT = "payment";

    public static final String COUPON_VERIFY = "coupon_verify";

    public static final String COUPON_VERIFY_CANCEL = "coupon_verify_cancel";

    /**
     * 订单状态 已支付
     */
    public static final String ORDER_STATUS_PAYED = "1";

    /**
     * 订单状态 预下单
     */
    public static final String ORDER_STATUS_CREATE = "0";


    /**
     * 订单状态 已核销
     */
    public static final String ORDER_STATUS_VERFIED = "2";

    /**
     * 订单状态 已取消
     */
    public static final String ORDER_STATUS_CANCEL = "3";
}
